#!/bin/bash -x

kata_coco_top_dir="$HOME/workspace/CoCo"

cosign_name=cosign-linux-amd64
cosign_cache="${kata_coco_top_dir}/${cosign_name}"

if [ ! -e ${cosign_cache} ]; then
  wget -O ${cosign_cache} \
    https://github.com/sigstore/cosign/releases/download/v2.2.1/cosign-linux-amd64
  chmod +x ${cosign_cache}

fi

export cosign_bin=${cosign_cache}
